package com.cskaoyan.servlet;

import com.cskaoyan.bean.common.BaseRespVo;
import com.cskaoyan.service.AdminLogService;
import com.cskaoyan.service.AdminLogServiceImpl;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@WebServlet("/admin/log/*")
public class AdminLogServlet extends WdBaseServlet {
    AdminLogService adminLogServlet= new AdminLogServiceImpl();
    private BaseRespVo list(HttpServletRequest request, HttpServletResponse response){
        String pageStr = request.getParameter("page");
        Integer page = Integer.parseInt(pageStr);
        String limitStr = request.getParameter("limit");
        Integer limit = Integer.parseInt(limitStr);
        String sort = request.getParameter("sort");
        String oder = request.getParameter("order");
        String name = request.getParameter("name");


        BaseRespVo baseRespVo = adminLogServlet.list(page,limit,sort,oder,name);

        return baseRespVo;
    }

}
